from qiniu import Auth,put_file,etag

AccessKey = 'Qx6yau9NHEOUSbQMu57d9h9SpoFfn1vPFHGyu5kP'
SecretKey = 'KNzyLZVipYvjxLtR91Op0iN5kMFLn_QzCZ0t2a08'


def qiniu_token():
    q = Auth(AccessKey,SecretKey)   # 初始化  七牛云构建鉴权对象

    bucket = 'news-vent'        #七牛云  上传的空间名
    token = q.upload_token(bucket)  # 上传凭证  上传的空间名  获取一个七牛云token
    print('七牛云token',token)
    return token


